package com.weiiew.common.utils;

/**
 * @Description
 * @Author 魏锴
 * @Date 2025/3/17
 */
public class HitUnit {
    private static int hitNumber = 0;
    private static int totalNumber = 0;
    public static void hit(){
        hitNumber++;
    }
    public static void query(){
        totalNumber++;
    }
    public static void printResult(){
        System.out.println("命中率：" + hitNumber * 1.0 / totalNumber );
    }
}
